home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / compan.tex < prev    next >
LaTeX Document  |  1994-05-01  |  1.3 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: compan.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 63 6f 6d 70 61 6e 20 |\section|{compan |
|00000010| 2d 2d 2d 20 43 6f 6d 70 | 61 6e 69 6f 6e 20 6d 61 |--- Comp|anion ma|
|00000020| 74 72 69 78 7d 0d 5c 6c | 61 62 65 6c 7b 66 6e 3a |trix}.\l|abel{fn:|
|00000030| 63 6f 6d 70 61 6e 7d 0d | 5c 69 6e 64 65 78 7b 63 |compan}.|\index{c|
|00000040| 6f 6d 70 61 6e 28 29 7d | 0d 5c 69 6e 64 65 78 7b |ompan()}|.\index{|
|00000050| 63 6f 6d 70 61 6e 69 6f | 6e 20 6d 61 74 72 69 78 |companio|n matrix|
|00000060| 7d 0d 5c 69 6e 64 65 78 | 7b 6d 61 74 72 69 78 21 |}.\index|{matrix!|
|00000070| 63 6f 6d 70 61 6e 69 6f | 6e 7d 0d 5c 62 65 67 69 |companio|n}.\begi|
|00000080| 6e 7b 72 61 69 6c 7d 0d | 43 6f 6d 70 61 6e 69 6f |n{rail}.|Companio|
|00000090| 6e 20 3a 20 27 63 6f 6d | 70 61 6e 27 20 27 28 27 |n : 'com|pan' '('|
|000000a0| 20 28 20 53 63 61 6c 61 | 72 20 7c 20 4d 61 74 72 | ( Scala|r | Matr|
|000000b0| 69 78 20 29 20 27 29 27 | 20 3b 0d 5c 65 6e 64 7b |ix ) ')'| ;.\end{|
|000000c0| 72 61 69 6c 7d 0d 0d 5c | 76 65 72 62 2b 63 6f 6d |rail}..\|verb+com|
|000000d0| 70 61 6e 2b 20 72 65 74 | 75 72 6e 73 20 74 68 65 |pan+ ret|urns the|
|000000e0| 20 63 6f 6d 70 61 6e 69 | 6f 6e 20 6d 61 74 72 69 | compani|on matri|
|000000f0| 78 20 6f 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |x of the| argumen|
|00000100| 74 20 6d 61 74 72 69 78 | 2e 0d 49 66 20 74 68 65 |t matrix|..If the|
|00000110| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 61 6e 20 | argumen|t is an |
|00000120| 28 6e 2b 31 29 2d 76 65 | 63 74 6f 72 2c 20 74 68 |(n+1)-ve|ctor, th|
|00000130| 65 20 63 6f 6d 70 61 6e | 69 6f 6e 20 6d 61 74 72 |e compan|ion matr|
|00000140| 69 78 20 69 73 20 24 6e | 20 78 20 6e 24 2e 20 49 |ix is $n| x n$. I|
|00000150| 66 0d 74 68 65 20 61 72 | 67 75 6d 65 6e 74 20 69 |f.the ar|gument i|
|00000160| 73 20 61 20 73 63 61 6c | 61 72 2c 20 73 61 79 20 |s a scal|ar, say |
|00000170| 24 73 24 2c 20 74 68 65 | 6e 20 5c 76 65 72 62 2b |$s$, the|n \verb+|
|00000180| 63 6f 6d 70 61 6e 28 73 | 29 2b 20 69 73 20 74 68 |compan(s|)+ is th|
|00000190| 65 20 0d 24 73 78 73 24 | 20 6d 61 74 72 69 78 20 |e .$sxs$| matrix |
|000001a0| 66 6f 72 6d 65 64 20 62 | 79 20 74 61 6b 69 6e 67 |formed b|y taking|
|000001b0| 20 74 68 65 20 63 6f 6d | 70 61 6e 69 6f 6e 20 6f | the com|panion o|
|000001c0| 66 20 24 5b 31 2c 32 2c | 5c 6c 64 6f 74 73 2c 20 |f $[1,2,|\ldots, |
|000001d0| 73 2b 31 5d 24 2e 20 49 | 66 0d 74 68 65 20 61 72 |s+1]$. I|f.the ar|
|000001e0| 67 75 6d 65 6e 74 20 69 | 73 20 61 20 6d 61 74 72 |gument i|s a matr|
|000001f0| 69 78 2c 20 62 75 74 20 | 69 73 20 6e 6f 74 20 61 |ix, but |is not a|
|00000200| 20 76 65 63 74 6f 72 2c | 20 61 6e 20 69 6e 74 65 | vector,| an inte|
|00000210| 72 6e 61 6c 20 63 6f 6e | 76 65 72 73 69 6f 6e 0d |rnal con|version.|
|00000220| 74 6f 20 76 65 63 74 6f | 72 20 66 6f 72 6d 61 74 |to vecto|r format|
|00000230| 20 69 73 20 64 6f 6e 65 | 2e 0d 0d 24 5c 4c 6f 6e | is done|...$\Lon|
|00000240| 67 72 69 67 68 74 61 72 | 72 6f 77 24 20 54 68 69 |grightar|row$ Thi|
|00000250| 73 20 69 73 20 6e 6f 74 | 20 61 6e 20 5c 52 4c 61 |s is not| an \RLa|
|00000260| 42 5c 20 62 75 69 6c 74 | 2d 69 6e 20 66 75 6e 63 |B\ built|-in func|
|00000270| 74 69 6f 6e 2e 20 20 54 | 68 69 73 20 66 75 6e 63 |tion. T|his func|
|00000280| 74 69 6f 6e 0d 69 73 20 | 6e 6f 72 6d 61 6c 6c 79 |tion.is |normally|
|00000290| 20 6c 6f 61 64 65 64 20 | 6f 6e 20 73 74 61 72 74 | loaded |on start|
|000002a0| 2d 75 70 20 66 72 6f 6d | 20 74 68 65 20 5c 76 65 |-up from| the \ve|
|000002b0| 72 62 2b 63 6f 6d 70 61 | 6e 2e 72 2b 20 66 69 6c |rb+compa|n.r+ fil|
|000002c0| 65 20 69 6e 20 74 68 65 | 0d 73 74 61 6e 64 61 72 |e in the|.standar|
|000002d0| 64 20 5c 76 65 72 62 2b | 72 6c 69 62 2b 20 64 69 |d \verb+|rlib+ di|
|000002e0| 72 65 63 74 6f 72 79 2e | 20 55 73 65 20 6f 66 20 |rectory.| Use of |
|000002f0| 74 68 65 20 5c 76 65 72 | 62 2b 2d 72 2b 20 6f 70 |the \ver|b+-r+ op|
|00000300| 74 69 6f 6e 2c 20 69 6e | 63 6f 72 72 65 63 74 6c |tion, in|correctl|
|00000310| 79 20 0d 73 65 74 74 69 | 6e 67 20 74 68 65 20 5c |y .setti|ng the \|
|00000320| 76 65 72 62 2b 52 4c 41 | 42 5f 4c 49 42 5f 44 49 |verb+RLA|B_LIB_DI|
|00000330| 52 2b 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 61 6c |R+ envir|onmental|
|00000340| 20 76 61 72 69 61 62 6c | 65 2c 20 6f 72 20 6d 6f | variabl|e, or mo|
|00000350| 64 69 66 79 69 6e 67 0d | 5c 76 65 72 62 2b 63 6f |difying.|\verb+co|
|00000360| 6d 70 61 6e 2e 72 2b 20 | 6d 61 79 20 6d 61 6b 65 |mpan.r+ |may make|
|00000370| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 75 | this fu|nction u|
|00000380| 6e 61 76 61 69 6c 61 62 | 6c 65 2e 0d 0d 5c 70 61 |navailab|le...\pa|
|00000390| 72 61 67 72 61 70 68 7b | 45 78 61 6d 70 6c 65 7d |ragraph{|Example}|
|000003a0| 0d 5c 69 6e 64 65 78 7b | 65 78 61 6d 70 6c 65 20 |.\index{|example |
|000003b0| 6f 66 20 63 6f 6d 70 61 | 6e 28 29 7d 0d 5c 69 6e |of compa|n()}.\in|
|000003c0| 64 65 78 7b 63 6f 6d 70 | 61 6e 28 29 21 65 78 61 |dex{comp|an()!exa|
|000003d0| 6d 70 6c 65 7d 0d 5c 62 | 65 67 69 6e 7b 76 65 72 |mple}.\b|egin{ver|
|000003e0| 62 61 74 69 6d 7d 0d 3e | 20 63 6f 6d 70 61 6e 28 |batim}.>| compan(|
|000003f0| 31 29 0d 20 20 20 20 20 | 20 20 20 31 0d 3e 20 63 |1). | 1.> c|
|00000400| 6f 6d 70 61 6e 28 32 29 | 0d 20 20 20 20 20 20 20 |ompan(2)|. |
|00000410| 2d 32 20 20 20 20 20 20 | 20 20 20 2d 33 20 20 0d |-2 | -3 .|
|00000420| 20 20 20 20 20 20 20 20 | 31 20 20 20 20 20 20 20 | |1 |
|00000430| 20 20 20 30 20 20 0d 3e | 20 63 6f 6d 70 61 6e 28 | 0 .>| compan(|
|00000440| 33 29 0d 20 20 20 20 20 | 20 20 2d 32 20 20 20 20 |3). | -2 |
|00000450| 20 20 20 20 20 2d 33 20 | 20 20 20 20 20 20 20 20 | -3 | |
|00000460| 2d 34 20 20 0d 20 20 20 | 20 20 20 20 20 31 20 20 |-4 . | 1 |
|00000470| 20 20 20 20 20 20 20 20 | 30 20 20 20 20 20 20 20 | |0 |
|00000480| 20 20 20 30 20 20 0d 20 | 20 20 20 20 20 20 20 30 | 0 . | 0|
|00000490| 20 20 20 20 20 20 20 20 | 20 20 31 20 20 20 20 20 | | 1 |
|000004a0| 20 20 20 20 20 30 20 20 | 0d 3e 20 63 6f 6d 70 61 | 0 |.> compa|
|000004b0| 6e 28 5b 31 2c 32 5d 29 | 0d 20 20 20 20 20 20 20 |n([1,2])|. |
|000004c0| 20 31 0d 3e 20 63 6f 6d | 70 61 6e 28 5b 31 2c 32 | 1.> com|pan([1,2|
|000004d0| 2c 33 5d 29 0d 20 20 20 | 20 20 20 20 2d 32 20 20 |,3]). | -2 |
|000004e0| 20 20 20 20 20 20 20 2d | 33 20 20 0d 20 20 20 20 | -|3 . |
|000004f0| 20 20 20 20 31 20 20 20 | 20 20 20 20 20 20 20 30 | 1 | 0|
|00000500| 20 20 0d 3e 20 63 6f 6d | 70 61 6e 28 5b 32 2c 33 | .> com|pan([2,3|
|00000510| 2c 35 5d 29 0d 20 20 20 | 20 20 2d 31 2e 35 20 20 |,5]). | -1.5 |
|00000520| 20 20 20 20 20 2d 32 2e | 35 20 20 0d 20 20 20 20 | -2.|5 . |
|00000530| 20 20 20 20 31 20 20 20 | 20 20 20 20 20 20 20 30 | 1 | 0|
|00000540| 20 0d 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d | .\end{v|erbatim}|
|00000550| 0d 0d 5c 6e 65 77 70 61 | 67 65 0d 0d 0d 0d 0d 0d |..\newpa|ge......|
+--------+-------------------------+-------------------------+--------+--------+